package com.bodu.exchange.client;

import com.bodu.core.entity.result.Result;
import com.bodu.exchange.entity.request.ExchangeBookRequest;
import com.bodu.exchange.entity.request.UserExchangeBookRequest;
import com.bodu.exchange.entity.vo.ExchangeBookVo;

public interface ExchangeBookClient {
    /**
     * 创建记账本
     * @param request
     * @return
     */
    Result<Long> createExchangeBook(ExchangeBookRequest request);

    /**
     * 查询记账本
     * @return
     */
    Result<ExchangeBookVo> bookList(UserExchangeBookRequest request);

    Result<Long> updateExchangeBook(ExchangeBookRequest request);

    Result<Integer> updateDefaultExchangeBookStatus(ExchangeBookRequest request);
}
